import request, { download }  from "@/utils/request";


// /admin/mall/order/page
// 商城订单分页
export const getMallOrderPage = (params) => {
  return request({
    url: "/admin/mall/order/page",
    method: "get",
    params,
  });
};
// /admin/mall/order/detail
// 商城订单详情
export const getMallOrderDetail = (id) => {
  return request({
    url: `/admin/mall/order/detail`,
    method: "get",
    params: {
      id,
    },
  });
};

// /admin/mall/order/applyRefund
// 退款
export const applyRefund = (params) => {
  return request({
    url: `/admin/mall/order/applyRefund`,
    method: "post",
    params: { id: params.id },
  });
};

// /admin/mall/order/verificationOrder
// 核销
export const verificationOrder = (params) => {
  return request({
    url: `/admin/mall/order/verificationOrder`,
    method: "post",
    params: { id: params.id },
  });
};


// /admin/property/bill/export
// 导出物业费
export function exportPropertyBill1(data) {
  return download("/admin/mall/order/export", data, "物业养老订单.xlsx");
}
